package com.mew.chess.core.game.dyj.game.message;

import com.mew.chess.core.game.dyj.game.common.DyjConstantValue;
import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @author dylin
 * @create 2021/4/25
 */
@Data
@ToString
public class PushOpenCardMessage extends ZebraBaseMessage<PushOpenCardMessage> {
    private final int remainTime = DyjConstantValue.OPEN_CARD_TIME;

    private List<Integer> dices;//骰子

    @Override
    public void write(ByteBuf b) {

        writeInt(b,remainTime);
        writeInt(b,dices.size());
        for (Integer dice : dices) {
            writeInt(b,dice);
        }
    }

    @Override
    public PushOpenCardMessage read(ByteBuf byteBuf) {
        return null;
    }
}
